﻿<UserControl x:Class="PSE.Tools.SchemaComparer.WindowsApp.UcPropertyCompareResultItem"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="Auto" Width="Auto">
    <StackPanel>
        <Grid Width="400" Height="70">
            <Grid.RowDefinitions>
                <RowDefinition ></RowDefinition>
                <RowDefinition ></RowDefinition>
                <RowDefinition ></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="30*"></ColumnDefinition>
                <ColumnDefinition Width="60*"></ColumnDefinition>
                <ColumnDefinition Width="13*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBox BorderThickness="1" Grid.Row="0" Grid.Column="0" IsReadOnly="True">Schema</TextBox>
            <TextBox BorderThickness="1" Grid.Row="0" Grid.Column="1" IsReadOnly="True">Valor</TextBox>

            <TextBox BorderThickness="1" Grid.Row="1" Grid.Column="0" Text="{Binding SourceSchemaName}" IsReadOnly="True"></TextBox>
            <TextBox BorderThickness="1" Grid.Row="1" Grid.Column="1" Text="{Binding SourceValue}" IsReadOnly="True" VerticalScrollBarVisibility="Disabled"></TextBox>

            <TextBox BorderThickness="1" Grid.Row="2" Grid.Column="0" Text="{Binding TargetSchemaName}" IsReadOnly="True"></TextBox>
            <TextBox BorderThickness="1" Grid.Row="2" Grid.Column="1" Text="{Binding TargetValue}" IsReadOnly="True" VerticalScrollBarVisibility="Disabled"></TextBox>
            <Button Width="24" HorizontalAlignment="Left" Height="24" Grid.Row="1" Grid.Column="3" Grid.RowSpan="2" x:Name="btnShowValue" Click="btnShowValue_Click"  ToolTip="Clique para visualizar os valores">...</Button>
            <Button Width="24" HorizontalAlignment="Right" Height="24" Grid.Row="1" Grid.Column="3" Grid.RowSpan="2" x:Name="btnShowValueCompareTool"  ToolTip="Clique para visualizar os valores utilizando uma ferramenta de comparação externa configurada" Click="btnShowValueCompareTool_Click">...</Button>
        </Grid>
    </StackPanel>
</UserControl>
